<template>
<div>Test 001</div>
</template>

<script>

import { getRouters } from '@/api/menu'

var fn = (x) => x - 1

console.log(fn(8))

var obj = require('../tt')

console.log(obj)

var p = new Promise(resolve => {
    setTimeout(() => {
        resolve('aaa')
    }, 3000)
})

p.then(function(message){
    console.log('success')
    console.log(message)
})

var routes = new Promise (resolve => {
    getRouters().then(res => {
        console.log(res)
        const sdata = JSON.parse(JSON.stringify(res.data))
        const rdata = JSON.parse(JSON.stringify(res.data))
        const sidebarRoutes = filterAsyncRouter(sdata)
        console.log(sidebarRoutes)
    })
})

function filterAsyncRouter(asyncRouterMap, isRewrite = false) {
    return 'filter'
}

export default {
  name: "Test",
  data() {
    return {
      codeUrl: "",
      cookiePassword: "",
      loginForm: {
        username: "admin",
        password: "admin123",
        rememberMe: false,
        code: "",
        uuid: ""
      },
    };
  },
};
</script>

<style rel="stylesheet/scss" lang="scss">

</style>
